import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import px2rem from "postcss-plugin-px2rem";

export default defineConfig({
	
	plugins: [
		uni(),

	],
	css: {
		preprocessorOptions: {
			scss: {
				javascriptEnabled: true,
			},
		},
		postcss: {
			plugins: [
				px2rem({
					rootValue: 16,
				}),
			],
		},
	}
});